<template>
    <div class="fixed">
        <van-nav-bar :title="title" @click-left="$router.go(-1);" left-text="返回" left-arrow>
            <template #right>
                <slot></slot>
            </template>
        </van-nav-bar>
    </div>
</template>

<script>
export default {
    props:['title']
}
</script>

<style lang="scss">
.fixed{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}
</style>